<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/views/global/taglibs.jsp" %>
<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath %>">
    <title>添加品牌</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<%@include file="/views/global/include.jsp" %>
	
	<style type="text/css">
	.main-md DIV.form-group{border-bottom: 1px dashed #ddd;}
	</style>
  </head>
  
  <body>
  <div class="main-md">
 	 <form class="form-horizontal" role="form">
			  <div class="form-group">
			    <label for="brandName" class="col-sm-2 control-label">品牌名称</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="brandName" name="brandName" placeholder="品牌名称">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="logoUrl" class="col-sm-2 control-label">品牌LOGO</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="logoUrl" name="logoUrl">
			    </div>
			  </div>
			   <div class="form-group">
			    <label for="introduction" class="col-sm-2 control-label">品牌介绍</label>
			    <div class="col-sm-10">
			      <textarea id="introduction" name="introduction" class="form-control" rows="3" > </textarea>
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="score" class="col-sm-2 control-label">品牌分数</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="score" name="score" >
			    </div>
			  </div>
			  <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <button type="submit" class="btn btn-default">Sign in</button>
			    </div>
			  </div>
      </form>
	</div>
	<%@include file="/views/global/AdminScripts.jsp" %>
</body>
<script type="text/javascript">
$(document).ready(function(){
	
});

function saveNode(){
	var validator = $("#updateForm").validate({meta:"validate"});
	if(validator.form()){
		$("#updateForm").goAjax({semantic: false, checkLogin: true,
			url: "/admin/user/save",
			data:{},
			success: function(jsonData) {
				if(true == jsonData.success){
       				$("#msg").alert({type:'alert-success', text: '保存成功！'});
       			} else {
       				$("#msg").alert({type:'alert-danger', text: '保存失败: ' + jsonData.message});
       			}
			}
		});
	}
}


</script>
</html>
